﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：PayExceptionFilterAttribute.cs
// 功能描述：TongTongMall.MallWeb
// 
// Create User：jym 2017/02/28
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System.Web.Http.Filters;

namespace TongTongMall.MallWeb.WebApi.Filter
{
    /// <summary>
    /// 支付失败异常处理
    /// </summary>
    public class PayExceptionFilterAttribute : ExceptionFilterAttribute
    {
        public override void OnException(HttpActionExecutedContext actionExecutedContext)
        {
            //if (actionExecutedContext.Exception is PayException)
            //{
            //    throw new UserFriendlyException((int)ErrCode.PayOrderFail, actionExecutedContext.Exception.Message);
            //}
            base.OnException(actionExecutedContext);
        }
    }
}